package com.nanxun.feign;


import com.nanxun.domain.Prod;
import com.nanxun.feign.sentinel.StoreProdFeignSentinel;
import com.nanxun.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *门店业务模块调用商品业务模块feign接口
 * @param
 * @return
 * @author nanxun
 * @create 2025/6/20
 **/
@FeignClient(value = "product-service",fallback = StoreProdFeignSentinel.class)
public interface StoreProdFeign {

    @GetMapping("prod/prod/getProdListByIds")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIdList);
    //现在是根据id查一个对象，后期可能会有根据id对象集合查商品对象集合，如果这里写成id集合查商品集合也能查一个
}
